package com.yuyou.tas.feedback.mapper;

import com.yuyou.tas.service.api.feedback.entity.FeedbackTeacherPraise;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FeedbackTeacherPraiseMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FeedbackTeacherPraise record);

    FeedbackTeacherPraise selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FeedbackTeacherPraise record);

    List<FeedbackTeacherPraise> findByFeedbackClassId(@Param(value = "feedbackClassId") Long feedbackClassId);

    Long countPraiseByFeedbackClassId(@Param(value = "feedbackClassId") Long feedbackClassId);

    Long countPraiseByFeedbackClassIdUserId(@Param(value = "feedbackClassId") Long feedbackClassId, @Param(value = "sendUserId") Long sendUserId);
}